* { 
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; 
}


.card {/*tamaño de los cards width: 160px;  height: 240px;*/
    position: relative;
    width: 190px;
    height: 300px;
    margin: 7px; /*Separacion de los cards*/
}

.card .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; 
    overflow: hidden;
    transition: .5s; 
}

.card .front {
    transform: perspective(600px) rotateY(0deg);
    box-shadow: 0 0px 5px 2px rgb(88, 211, 197); /*Sombra del libro*/
}

.card .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .front h3 {
    text-align: center; 
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    line-height: 45px;  /*
    color: rgb(140, 126, 62);     
    background: rgba(234, 47, 47, 0.4);
    text-align: center;*/   /*Es el texto de la parte frontal que se desactivo*/
}

.card .back {
    transform: perspective(600px) rotateY(180deg);
    background: rgb(95, 52, 6);/* Color trasero de fondo del libro */
    padding: 10px;
    color: #b77f10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 0px 4px 5px rgb(183, 229, 75);
}

.card .back .link {
    border-top: solid 1px #f3f3f3;
    height: 50px;
    line-height: 50px;
}

.card .back .link a {
    color: #f3f3f3;
}

.card .back h3 {
    font-size: 30px;
    margin-top: 20px;
    letter-spacing: 2px;
}

.card .back p {
    letter-spacing: 1px;
} 

.card:hover .front {
    transform: perspective(600px) rotateY(180deg);
}

.card:hover .back {
    transform: perspective(600px) rotateY(360deg);
}
 

